﻿using System;
using System.Collections.Generic;
using System.Web;
using System.IO;

namespace FirstFloor.Documents.Services.Storage
{
    /// <summary>
    /// Represents a single part of a document.
    /// </summary>
    public class DocumentPartInfo
    {
        /// <summary>
        /// Gets or sets the name of the part.
        /// </summary>
        /// <value>The name of the part.</value>
        public string PartName { get; set; }

        /// <summary>
        /// Gets or sets the content type of the part.
        /// </summary>
        /// <value>The type of the content.</value>
        public string ContentType { get; set; }

        /// <summary>
        /// Gets or sets the part stream.
        /// </summary>
        /// <value>The stream.</value>
        public Stream Stream { get; set; }

        /// <summary>
        /// Gets or sets the names of the required parts associated with this part.
        /// </summary>
        /// <value>The required part names.</value>
        public string[] RequiredPartNames { get; set; }
    }
}